﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProjectManager.Logic.Content
{
    internal struct TeamInformation
    {
        public int ID { get; init; }
        public string Name { get; init; }
        public MemberInformation Leader { get; set; }
        public HashSet<TeamInformation> Members;
        public HashSet<TeamInformation> ChildTeams
        {
            get => Members;
            set => Members = value;
        }
        public List<ProjectTaskInformation> Tasks;
        // 团队是否是个人,如果是个人,则Members为空，且只能有一个人，不能更改主管人
        public bool IsIndividual { get; init; }
        // 是否注销团队
        public bool IsCancelled { get; set; }
    }
}
